package org.groupg.project.config;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class JsonPortConfig {
    @JsonProperty("port")
    private int port;

    @JsonProperty("rules")
    private List<RuleConfig> rules;

    public JsonPortConfig() {}

    public JsonPortConfig(int port, List<RuleConfig> rules) {
        this.port = port;
        this.rules = rules;
    }

    // Getters and Setters
    public int getPort() {
        return port;
    }

    public List<RuleConfig> getRules() {
        return rules;
    }
}